.class Lcom/example/m6wmr/BuyActivity$6;
.super Ljava/lang/Thread;
.source "BuyActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/BuyActivity;->getSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/BuyActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/BuyActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    .line 403
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .prologue
    const/4 v9, 0x2

    .line 405
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 407
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 408
    .local v3, "msg":Landroid/os/Message;
    iget-object v6, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    iget-object v7, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    # getter for: Lcom/example/m6wmr/BuyActivity;->tv_kg:Landroid/widget/TextView;
    invoke-static {v7}, Lcom/example/m6wmr/BuyActivity;->access$24(Lcom/example/m6wmr/BuyActivity;)Landroid/widget/TextView;

    move-result-object v7

    invoke-virtual {v7}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v7

    invoke-interface {v7}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/example/m6wmr/BuyActivity;->access$25(Lcom/example/m6wmr/BuyActivity;Ljava/lang/String;)V

    .line 409
    new-instance v6, Ljava/lang/StringBuilder;

    iget-object v7, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    iget-object v7, v7, Lcom/example/m6wmr/BuyActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 410
    const-string v7, "/index.php?ctrl=app&source=1&action=paotuiajax&datatype=json"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    .line 411
    const-string v7, "&getlat="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    # getter for: Lcom/example/m6wmr/BuyActivity;->qulat:Ljava/lang/String;
    invoke-static {v7}, Lcom/example/m6wmr/BuyActivity;->access$26(Lcom/example/m6wmr/BuyActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&getlng="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    # getter for: Lcom/example/m6wmr/BuyActivity;->qulng:Ljava/lang/String;
    invoke-static {v7}, Lcom/example/m6wmr/BuyActivity;->access$27(Lcom/example/m6wmr/BuyActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&shoulng="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    .line 412
    iget-object v7, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    # getter for: Lcom/example/m6wmr/BuyActivity;->shoulng:Ljava/lang/String;
    invoke-static {v7}, Lcom/example/m6wmr/BuyActivity;->access$28(Lcom/example/m6wmr/BuyActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&shoulat="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    # getter for: Lcom/example/m6wmr/BuyActivity;->shoulat:Ljava/lang/String;
    invoke-static {v7}, Lcom/example/m6wmr/BuyActivity;->access$29(Lcom/example/m6wmr/BuyActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&ptkg="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    # getter for: Lcom/example/m6wmr/BuyActivity;->ptkg:Ljava/lang/String;
    invoke-static {v7}, Lcom/example/m6wmr/BuyActivity;->access$30(Lcom/example/m6wmr/BuyActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    .line 409
    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 413
    .local v5, "url":Ljava/lang/String;
    const-string v6, "ShopshowACtivity"

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "getshopSource\u951b\u582c\u7d1a\u947e\u5cf0\u5f47\u6434\u6945\u6475\u6dc7\u2103\u4f05"

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 415
    iget-object v6, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    iget-object v6, v6, Lcom/example/m6wmr/BuyActivity;->m:Lmyapp/MyApp;

    invoke-static {v5, v6}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v4

    .line 416
    .local v4, "str":Ljava/lang/String;
    const-string v6, "getShopSource();---------------"

    invoke-static {v6, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 418
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 420
    .local v2, "json":Lorg/json/JSONObject;
    const-string v6, "error"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "true"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 422
    const-string v6, "msg"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 423
    const/4 v6, 0x1

    iput v6, v3, Landroid/os/Message;->arg1:I

    .line 424
    sget-object v6, Lcom/example/m6wmr/BuyActivity;->h:Landroid/os/Handler;

    invoke-virtual {v6, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 451
    .end local v2    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 427
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v6, "msg"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 429
    const/4 v6, 0x2

    iput v6, v3, Landroid/os/Message;->arg1:I

    .line 430
    sget-object v6, Lcom/example/m6wmr/BuyActivity;->h:Landroid/os/Handler;

    invoke-virtual {v6, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 443
    .end local v2    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 445
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 448
    iput v9, v3, Landroid/os/Message;->arg1:I

    .line 449
    sget-object v6, Lcom/example/m6wmr/BuyActivity;->h:Landroid/os/Handler;

    invoke-virtual {v6, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 434
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v6, "msg"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    .line 435
    .local v1, "jo":Lorg/json/JSONObject;
    iget-object v6, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    const-string v7, "allkgcost"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v7

    invoke-static {v6, v7, v8}, Lcom/example/m6wmr/BuyActivity;->access$31(Lcom/example/m6wmr/BuyActivity;D)V

    .line 436
    iget-object v6, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    const-string v7, "allkmcost"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v7

    invoke-static {v6, v7, v8}, Lcom/example/m6wmr/BuyActivity;->access$32(Lcom/example/m6wmr/BuyActivity;D)V

    .line 437
    iget-object v6, p0, Lcom/example/m6wmr/BuyActivity$6;->this$0:Lcom/example/m6wmr/BuyActivity;

    const-string v7, "juli"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Lcom/example/m6wmr/BuyActivity;->access$33(Lcom/example/m6wmr/BuyActivity;Ljava/lang/String;)V

    .line 439
    iput-object v4, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 441
    const/4 v6, 0x5

    iput v6, v3, Landroid/os/Message;->arg1:I

    .line 442
    sget-object v6, Lcom/example/m6wmr/BuyActivity;->h:Landroid/os/Handler;

    invoke-virtual {v6, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 454
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 455
    monitor-exit p0

    return-void

    .line 454
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
